
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@resistdesign/node-googlehome
Advanced tools
It uses Node.js to communicate with Google Home.
$ npm install node-googlehome --save
$ yarn add node-googlehome
const GoogleHome = require('node-googlehome')
/**
* search google home.
* @param {waitTime: number(default: 1000)}
*/
GoogleHome.search(1000)
.then(resp => { console.log(resp) })
/**
* connect google home with IP.
* @param {ip_address: string}
*/
let device = new GoogleHome.Connecter('192.168.11.13')
/**
* setting language
* @param {{lang: string(default: 'en')}}
*/
device.config({lang: 'ja'})
/**
* Start speaker.
* If you do this, google home will immediately sound when you call speak() or playMedia()
*/
device.readySpeaker()
.then(() => { /* do something */ })
/**
* play media. pass media url.
* @param {url: string}
*/
device.playMedia('http://www.hypertrombones.jp/sample/system7.mp3')
.then(console.log)
.catch(console.log)
/**
* google home speak!
* @param {message: string, speed: number(default:1), timeout: number(default: 3000)}
*/
device.speak('こんにちは!')
.then(console.log)
.catch(console.log)
・Node.js >= v7
FAQs
It uses Node.js to communicate with Google Home.
We found that @resistdesign/node-googlehome demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.